//
//  XHHTTPRequest.h
//  XHNetwork
//
//  Created by xinph on 2020/3/11.
//  Copyright © 2020 xinph. All rights reserved.
//

#import <YTKNetwork/YTKNetwork.h>
#import <ReactiveObjc/ReactiveObjc.h>
#import "XHURLParameters.h"

NS_ASSUME_NONNULL_BEGIN

@interface XHHTTPRequest : YTKRequest
/// 请求参数
@property (nonatomic, readonly, strong) XHURLParameters *urlParameters;
/**
 获取请求类
 @param parameters  参数模型
 @return 请求类
 */
+ (instancetype)requestWithParameters:(XHURLParameters *)parameters;

@end
/// XHHTTPRequest的分类
@interface XHHTTPRequest (XHHTTPService)
/// 入队
- (RACSignal *) enqueueResultClass:(Class /*subclass of XHObject*/) resultClass;

@end

NS_ASSUME_NONNULL_END
